﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using PlugNT.Cms.Page;

namespace PlugNT.Cms.Web.Admin
{
    public partial class LoginOut : SitePager
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Session[PlugNT.Custom.WebConfig.SessionAdminer] != null)
            {
                Session.Remove(PlugNT.Custom.WebConfig.SessionAdminer);
                Response.Redirect("/Admin/Login.aspx");
            }
            else
            {
                Response.Redirect("/Admin/Login.aspx");
            }
        }
    }
}
